package towerdefencegame;

import java.awt.Toolkit;
import java.awt.event.ActionEvent;

@SuppressWarnings("serial")
public class Guihandler extends Gui implements IGui {

	public Guihandler() {
		super();
		super.setVisible(true);
	}
	 public static void main(String args[]) {
	        java.awt.EventQueue.invokeLater(new Runnable() {
	            public void run() {

	           	 Guihandler g = new Guihandler(); 
	             try {
	 
	             g.setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource("../icon.jpg")));
	             } catch (Exception e) { System.err.println("error: "+e.toString()); }
	             
	           }
	        });
	    }

	public void buttonMainMenuActionPerformed(ActionEvent evt) {
		// TODO Auto-generated method stub
		super.buttonMainMenuActionPerformed(evt);
	}

	public void buttonNextWaveActionPerformed(ActionEvent evt) {
		// TODO Auto-generated method stub
		super.buttonNextWaveActionPerformed(evt);

	
	}

	public void setDetailsLabel(String tekst) {
		// TODO Auto-generated method stub
		super.setDetailsLabel(tekst);
	}

	public void toggleButtonPauseActionPerformed(ActionEvent evt) {
		// TODO Auto-generated method stub
		super.toggleButtonPauseActionPerformed(evt);
	}

	public void toggleTowerButtonPressed(int torn) {
		// TODO Auto-generated method stub
		super.toggleTowerButtonPressed(torn);
		setDetailsLabel(new tower.maintower(0,0,torn).toString());
	}


	
}
